/*******************************************************************
 *
 * Copyright (C), 2021-2022, LS, All rights reserved.
 *
 * Author      : 
 * Create Time : 2020-12-17
 * Version     : v0.1
 * Description : 
 *******************************************************************/
#ifndef _APP_BATTERY_H_
#define _APP_BATTERY_H_
 
/*----------------------------Head file----------------------------*/
#include "stdint.h"
#include "stdbool.h"

/*----------------------------macro file---------------------------*/

/*----------------------------type define--------------------------*/

/*----------------------------var define---------------------------*/

/*-------------------------func declaration------------------------*/
extern void app_batt_hw_init(void);
extern void app_batt_adc_start_detect(void);
extern void app_batt_adc_stop_detect(void);
extern bool app_batt_charge_state_get(void);
extern void app_batt_adc_read_done_handle(void);
extern uint8_t app_charging_batt_level_get(void);
extern uint8_t app_discharge_batt_level_get(void);
extern void app_batt_mea_timer_timeout_handler(void);
extern void app_batt_charging_detect_handle(void);
extern void app_batt_charge_status_check_handle(void);

/*-----------------------------------------------------------------*/

#endif


